package com.ys.mapper.mail;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface MailMapper {

	/*
	 * 批量删除草稿箱-假删除
	 */
	public int deleteFalseBatchOfMailDraft(@Param("ids")String ids);

	/*
	 * 批量删除收件箱-假删除
	 */
	public int deleteFalseBatchOfMailReceiver(@Param("ids")String ids);

	/*
	 * 批量删除发件箱-假删除
	 */
	public int deleteFalseBatchOfMailMain(@Param("ids")String ids);

	/*
	 * 删除发件箱-假删除
	 */
	public int deleteFalseOfMailMain(@Param("id")Long id);

	/*
	 * 删除收件箱-假删除
	 */
	public int deleteFalseOfMailReceiverByUk(@Param("mainId")Long mainId, @Param("userId")String userId);

	/*
	 * 批量已读
	 */
	public int readBatchOfMailReceiver(@Param("ids")String ids);

	/*
	 * 恢复垃圾箱数据到收件箱
	 */
	public int rebackBatchFromDustbin(@Param("ids")String ids);
}